package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 编码流水号记录对象 sys_coding_serial_record
 * 
 * @author ruoyi
 * @date 2025-08-08
 */
public class SysCodingSerialRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long recordId;

    /** 规则ID */
    @Excel(name = "规则ID")
    private Long ruleId;

    /** 段ID */
    @Excel(name = "段ID")
    private Long segmentId;

    /** 重置键(20240701表示2024年7月1日) */
    @Excel(name = "重置键(20240701表示2024年7月1日)")
    private String resetKey;

    /** 当前值 */
    @Excel(name = "当前值")
    private Long currentValue;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }

    public void setRuleId(Long ruleId) 
    {
        this.ruleId = ruleId;
    }

    public Long getRuleId() 
    {
        return ruleId;
    }

    public void setSegmentId(Long segmentId) 
    {
        this.segmentId = segmentId;
    }

    public Long getSegmentId() 
    {
        return segmentId;
    }

    public void setResetKey(String resetKey) 
    {
        this.resetKey = resetKey;
    }

    public String getResetKey() 
    {
        return resetKey;
    }

    public void setCurrentValue(Long currentValue) 
    {
        this.currentValue = currentValue;
    }

    public Long getCurrentValue() 
    {
        return currentValue;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("ruleId", getRuleId())
            .append("segmentId", getSegmentId())
            .append("resetKey", getResetKey())
            .append("currentValue", getCurrentValue())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
